package movie.entity;

public class Order {
	private String OrderId;
	public String getOrderId() {
		return OrderId;
	}
	private int ScheduleId;
	private int ConsumerId;
	private float AllPrice;
	

	
	public String getOrderDate() {
		String year = OrderId.substring(0, 4);
		String month = OrderId.substring(4, 6);
		String day = OrderId.substring(6, 8);
		return year + "-" + month + "-" + day;
	}
	public void setOrderId(String orderId) {
		OrderId = orderId;
	}
	
	public int getScheduleId() {
		return ScheduleId;
	}
	public void setScheduleId(int scheduleId) {
		ScheduleId = scheduleId;
	}
	public int getConsumerId() {
		return ConsumerId;
	}
	public void setConsumerId(int consumerId) {
		ConsumerId = consumerId;
	}
	

	public float getAllPrice() {
		return AllPrice;
	}
	public void setAllPrice(float allPrice) {
		AllPrice = allPrice;
	}
	@Override
	public String toString() {
		return "Order [OrderId=" + OrderId + ", ScheduleId=" + ScheduleId + ", ConsumerId=" + ConsumerId + ", AllPrice="
				+ AllPrice + "]";
	}

	
}
